<!--
 * @Author: DUST
 * @Date: 2023-06-07 09:56:05
 * @LastEditors: DUST
 * @LastEditTime: 2023-06-27 09:44:37
 * @FilePath: \vite-project\src\components\CIcon.vue
 * @Description: 
 * undefined
-->
<template>
  <icon-font :style="{color}" :type="`icon-${type}`" />
</template>

<script lang="ts">
import { createFromIconfontCN } from "@ant-design/icons-vue";
import { defineComponent } from "vue";
const IconFont = createFromIconfontCN({
  scriptUrl: "//at.alicdn.com/t/c/font_4108344_cypm1akgyqt.js", // 阿里图标库-blogs项目
});

export default defineComponent({
  props: {
    type: {
      type: String,
      default: () => "",
    },
    color: {
      type: String,
      default: () => "#000",
    },
  },
  components: {
    IconFont,
  },
  setup(props, ctx) {
    return {};
  },
});
</script>

<style></style>
